export type LoginOption = {
    onSuccess(res:any):void
    onFail():void
}

export type ShareOptions = Partial<{
    text:string,
    img:string,
    weburl:string,
    title:string,
    platforms:number[], // 平台
    success:Function
}>
export interface IBridge{
    login(option:LoginOption):void
    getMainColor(src:string,quality?:number,ingoreWhite?:boolean):Promise<any>
    shareBoard(option:ShareOptions):void
}